@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">提现</div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
                        {!! csrf_field() !!}

                        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                            <label class="col-md-4 control-label">开户姓名</label>

                            <div class="col-md-6">
                                <input type="text" class="form-control" name="email" value="柯政" disabled="disabled">
                            </div>
                        </div>

                        <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                            <label class="col-md-4 control-label">账户</label>

                            <div class="col-md-6">
                                <input type="text" class="form-control" name="password" value="6228486353" disabled="disabled">
                            </div>
                        </div>
						
                        <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                            <label class="col-md-4 control-label">充值金额</label>

                            <div class="col-md-6">
                                <input type="text" class="form-control" name="password">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <div class="checkbox">
                                    <label>
                                        <i class="fa glyphicon glyphicon-hand-right public-marginright10"></i>手续费按提现金额的1%收取,单笔最少2元。每笔出金最小100,最大5000。
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <button type="submit" class="btn btn-primary btn-lg btn-block">
                                    <i class="fa glyphicon glyphicon-send public-marginright10"></i>立即提交
                                </button>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <button type="button" class="btn btn-default btn-lg btn-block">
                                    <i class="fa glyphicon glyphicon-th public-marginright10"></i>解除绑定
                                </button>
                            </div>
                        </div>
                    </form>
                    <script type="text/javascript">
                    	$('#bank').delegate('li','click',function(){
                    		$('#bankval').val($(this).html())
                    		$('#myModal').modal('toggle')
                    	})
                    
                    	$.getJSON("{{ asset('packages/bootstrap-chinese-region/src/sql_areas.json') }}",function(data){
        
					        /**重定义数据结构**/
					        /**
					         * id 键,name 名字,level 层级,parentId 父级
					         */
					        for (var i = 0; i < data.length; i++) {
					            var area = {id:data[i].id,name:data[i].cname,level:data[i].level,parentId:data[i].upid};
					            data[i] = area;
					        }
					
					        $('.bs-chinese-region').chineseRegion('source',data);//导入数据并实例化
					    });
                    </script>

                </div>
            </div>
        </div>
    </div>
</div>
@endsection
